﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="InternshipManagement.Helpers" %>
<ul class="submenu">
    <% if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.DisplayDocuments))
       { %>
    <li <%= ViewBag.DocumentOp == 0 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("Documents", "Index")%>
    </li>
    <%} if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.ListDocuments))
       { %>
    <li <%= ViewBag.DocumentOp == 1 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("List Documents", "List")%>
    </li>
    <%} if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.AddDocument))
       { %>
    <li <%= ViewBag.DocumentOp == 2 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("Add New Document", "Create")%>
    </li>
    <%} if (ViewBag.DocumentOp == 3)
       {%>
    <li class="selectedop">
        Edit Document
    </li>
    <% }%>
</ul>